package com.kotiln.lgc.lib_network.thread;

import java.util.concurrent.ThreadFactory;

/**
 *
 * @date 2021/3/3
 */
public interface IThreadPool {
    /**
     * 创建线程池
     */
    void createThreadPool();

    /**
     * 设置线程池
     *
     * @param factory 线程池工厂类
     */
    void setThreadFactory(ThreadFactory factory);

    /**
     * 执行线程
     *
     * @param runnable 需要执行的Runnable
     */
    void startThread(Runnable runnable);
}
